﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration.Provider;
using System.Web.Configuration;
using Core.Configuration;

namespace Core.CMS.Providers
{
    /// <summary>
    /// http://msdn.microsoft.com/en-us/library/aa479038.aspx
    /// </summary>
    public abstract class ContentProvider : AppFunctionProvider
    {
        // page management
        public abstract PageInfo GetPage(int PageID);
        public abstract int SavePage(PageInfo Info);
        public abstract void DeletePage(int PageID);

        // content management
        public abstract string GetContent(int PageID, string Name);
        public abstract void SetContent(int PageID, string Name, string Content);

        // heirarchy
        public abstract List<PageInfo> GetChildren(int Parent);
    }
}
